<template>
	<view>
		<text>test组件{{msg}}</text>
		<button @click="test">evt</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		props:["msg"],
		methods:{
			test(){
				// this.$emit("testEvent",{msg:"msg"})
				uni.$emit("testEmit",{msg:"msg"})
			}
		}
		
	}
</script>

<style lang="scss">

</style>
